<local:DocumentBase x:Class="WPFExcelReport.TYTWB04"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
                    xmlns:WB="clr-namespace:WPFExcelReport;assembly=TWBBST"
                    xmlns:WG="clr-namespace:WPFExcelReport;assembly=TWGBST"
                    xmlns:WD="clr-namespace:WPFExcelReport;assembly=TWBDAT"
                    xmlns:MU="clr-namespace:WPFExcelReport;assembly=TABAUFM" 
                    xmlns:VVT="clr-namespace:WPFExcelReport;assembly=TVVTLIEF"
                    xmlns:VV="clr-namespace:WPFExcelReport;assembly=TVVLIEF"  
                    xmlns:VP="clr-namespace:WPFExcelReport;assembly=TVVPACK" 
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM"
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TWAFARBEN"
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN" 
                     xmlns:CWBEW="clr-namespace:WPFExcelReport;assembly=TICC_WBBEW" 
                     xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                     xmlns:me="clr-namespace:WPFExcelReport"
                    FontSize="16"
                    Name="TV"
                    Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </local:DocumentBase.Resources>
    <DockPanel> 
        <ex:AniScrollViewer DockPanel.Dock="Right" 
                    MaxWidth="400"
                    Visibility="{Binding IsShowRight,ElementName=TV,Converter={StaticResource bv}}" >
            <StackPanel >
                <WS:TWASTAMM Grid.Row="1"  Grid.Column="0" Name="cWS" 
                             ORDERNUM="{Binding WAART,ElementName=cWB04}" 
                             Width="Auto" MinWidth="300" />

            </StackPanel>
        </ex:AniScrollViewer>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition   Height="Auto" />
                <RowDefinition   Height="1*" />
                <RowDefinition   Height="Auto" />
            </Grid.RowDefinitions>
            <WrapPanel  Grid.Row="0" >
                <Button Content="{Binding Source={Localization:Translate Word=采购入库}}" Margin="20,0,0,0"  Click="EKWB"/>
            </WrapPanel>
            <Grid Grid.Row="1" Grid.RowSpan="2"
              Name="ZoneWB"
              >
                <Grid.RowDefinitions>
                    <RowDefinition   Height="Auto" />
                    <RowDefinition   Height="1*" />
                </Grid.RowDefinitions>
                <WD:TWBDAT Grid.Row="0" Name="cWB04" WAKZ="R"  />
                <WB:TWBBST Grid.Row="1" Name="cWB"  IsPage="True" Rows="100" 
                           IsBusy="{Binding IsBusy,ElementName=TV}"  
                           RWAUF="{Binding KEY,ElementName=cWB04}" 
                           LO="{Binding LO,ElementName=cWB04}" 
                           LB="{Binding LB,ElementName=cWB04}" 
                           LP="{Binding LP,ElementName=cWB04}" 
                           FTAUTOSUM="True"
                           SKEY1="WBBART" 
                           KEY1="WBBISTKLG"
                           FTAUTOWB="True"
                           IsEdit="{Binding IsEdit,ElementName=cWB04}"
                          IsKEY="{Binding IsKEY,ElementName=cWB04}"
                          dwWB04="{Binding dwWB04,ElementName=cWB04}" />
            </Grid>

            <CWBEW:TEKWB14  Grid.Row="1" Grid.RowSpan="2"
                      IsPage="True" Rows="100" 
                       Visibility="Collapsed"
                       Name="ZoneEKWB"
                       />
        </Grid>
    </DockPanel>
</local:DocumentBase>
    
